<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>demo</title>
    <script src="https://unpkg.com/vue@3.0.5/dist/vue.global.js"></script>
  </head>

  <body>
    <div id="app"></div>
    <script>
      const app = Vue.createApp({
        data() {
          return {
            arr: ["a1", "a2", "a3"],
          };
        },
        methods: {},
        template: `
          <div>
            <ul>
              <li v-for='item in 10'>{{item}}</li>
            </ul>
            <ul>
              <template v-for='item in arr'>
                <li v-if="item!='a1'">{{item}}</li>
              </template>
            </ul>
          </div>
        `,
      });

      const vm = app.mount("#app");
    </script>
  </body>
</html>
